let app=new Vue({
    el:"#registerApp",
    data:{
        username:'',
        nickname:'',
        password:'',
        config:''
    },
    methods:{
        register:function () {
            let form=new FormData();
            form.append('username',this.username)
            form.append('nickname',this.nickname)
            form.append('password',this.password)
            form.append('config',this.config)
            console.log(form)
            axios({
                url:'/register',
                data:form,
                method:'post'
            }).then(function (response) {
                alert(response)
            }).catch(function (error) {
                alert(error)
            })
        }
    }
})